﻿using gt.framework.Utils;

namespace gt.framework.Configuration
{
    public abstract class ConfigBase : IGetConfigKey, IConfigChange
    {
        public virtual void ConfigChanged()
        {
        }

        public virtual string GetConfigKey()
        {
            return this.GetType().Name;
        }

        public virtual string GetConfigFullPath()
        {
            return PathUtils.GetFullPath(CentralManagerConfigCreator.GetAppDataByConfigKey(GetConfigKey()));
        }
    }
}
